package com.yp.studentsys.common;

public enum ResponseCode {
    //设置常量 SUCCES绑定2个数据1,success
    SUCCESS(1,"成功"),
    FAIL(0,"失败"),
    IS_LOGIN(2,"登录了"),
    IS_NOT_LOGIN(3,"未登录"),
    IS_PAY(10,"已支付");
    //code 让常量绑定int数据
    private int code;
    //comment 常量绑定字符串数据
    private String comment;

    ResponseCode() {
    }
    //使用结构方法给常量进行设置
    ResponseCode(int code, String comment) {
        this.code = code;
        this.comment = comment;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getCode() {
        return code;
    }

    public String getComment() {
        return comment;
    }



}
